version=$1

if [ -z $version ]; then
  echo "specify version";
  exit;
fi


make CONF=ReleaseStatic32
make CONF=ReleaseStatic64
make CONF=ReleaseShared32
make CONF=ReleaseShared64
cd dingo-render
make CONF=Release32
make CONF=Release64
cd ../jni
make CONF=Release32
make CONF=Release64
cd ..

./dingo-render-release-linux.32.sh dingo-render-$version-linux32
./dingo-render-release-linux.64.sh dingo-render-$version-linux64
./dingo-release-linux.32.sh dingo-$version-linux32
./dingo-release-linux.64.sh dingo-$version-linux64
./dingo-jni-release.sh dingo-jni-$version-linux
